from wormbane.ui.selection_dialog import selection_dialog

def command_inventory(game, ui):
    if not game.hero.inv:
        game.write(game.hero, 'has nothing')
        return

    selection = selection_dialog(ui.stdscr, list(reversed(game.hero.inv)),
                                 prompt = 'Inventory')
    if not selection:
        game.write('Never mind.')
        return
    game.write('Not yet implemented.')
